package com.tro.mail.dao.entity;

import com.tro.common.util.mybatis.Page;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class MailInboxExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected Page page;

    public MailInboxExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setPage(Page page) {
        this.page=page;
    }

    public Page getPage() {
        return page;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("ID is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("ID is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("ID =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("ID <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("ID >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("ID >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("ID <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("ID <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("ID in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("ID not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("ID between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("ID not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andMailIdIsNull() {
            addCriterion("MAIL_ID is null");
            return (Criteria) this;
        }

        public Criteria andMailIdIsNotNull() {
            addCriterion("MAIL_ID is not null");
            return (Criteria) this;
        }

        public Criteria andMailIdEqualTo(Long value) {
            addCriterion("MAIL_ID =", value, "mailId");
            return (Criteria) this;
        }

        public Criteria andMailIdNotEqualTo(Long value) {
            addCriterion("MAIL_ID <>", value, "mailId");
            return (Criteria) this;
        }

        public Criteria andMailIdGreaterThan(Long value) {
            addCriterion("MAIL_ID >", value, "mailId");
            return (Criteria) this;
        }

        public Criteria andMailIdGreaterThanOrEqualTo(Long value) {
            addCriterion("MAIL_ID >=", value, "mailId");
            return (Criteria) this;
        }

        public Criteria andMailIdLessThan(Long value) {
            addCriterion("MAIL_ID <", value, "mailId");
            return (Criteria) this;
        }

        public Criteria andMailIdLessThanOrEqualTo(Long value) {
            addCriterion("MAIL_ID <=", value, "mailId");
            return (Criteria) this;
        }

        public Criteria andMailIdIn(List<Long> values) {
            addCriterion("MAIL_ID in", values, "mailId");
            return (Criteria) this;
        }

        public Criteria andMailIdNotIn(List<Long> values) {
            addCriterion("MAIL_ID not in", values, "mailId");
            return (Criteria) this;
        }

        public Criteria andMailIdBetween(Long value1, Long value2) {
            addCriterion("MAIL_ID between", value1, value2, "mailId");
            return (Criteria) this;
        }

        public Criteria andMailIdNotBetween(Long value1, Long value2) {
            addCriterion("MAIL_ID not between", value1, value2, "mailId");
            return (Criteria) this;
        }

        public Criteria andOwerUserIdIsNull() {
            addCriterion("OWER_USER_ID is null");
            return (Criteria) this;
        }

        public Criteria andOwerUserIdIsNotNull() {
            addCriterion("OWER_USER_ID is not null");
            return (Criteria) this;
        }

        public Criteria andOwerUserIdEqualTo(String value) {
            addCriterion("OWER_USER_ID =", value, "owerUserId");
            return (Criteria) this;
        }

        public Criteria andOwerUserIdNotEqualTo(String value) {
            addCriterion("OWER_USER_ID <>", value, "owerUserId");
            return (Criteria) this;
        }

        public Criteria andOwerUserIdGreaterThan(String value) {
            addCriterion("OWER_USER_ID >", value, "owerUserId");
            return (Criteria) this;
        }

        public Criteria andOwerUserIdGreaterThanOrEqualTo(String value) {
            addCriterion("OWER_USER_ID >=", value, "owerUserId");
            return (Criteria) this;
        }

        public Criteria andOwerUserIdLessThan(String value) {
            addCriterion("OWER_USER_ID <", value, "owerUserId");
            return (Criteria) this;
        }

        public Criteria andOwerUserIdLessThanOrEqualTo(String value) {
            addCriterion("OWER_USER_ID <=", value, "owerUserId");
            return (Criteria) this;
        }

        public Criteria andOwerUserIdLike(String value) {
            addCriterion("OWER_USER_ID like", value, "owerUserId");
            return (Criteria) this;
        }

        public Criteria andOwerUserIdNotLike(String value) {
            addCriterion("OWER_USER_ID not like", value, "owerUserId");
            return (Criteria) this;
        }

        public Criteria andOwerUserIdIn(List<String> values) {
            addCriterion("OWER_USER_ID in", values, "owerUserId");
            return (Criteria) this;
        }

        public Criteria andOwerUserIdNotIn(List<String> values) {
            addCriterion("OWER_USER_ID not in", values, "owerUserId");
            return (Criteria) this;
        }

        public Criteria andOwerUserIdBetween(String value1, String value2) {
            addCriterion("OWER_USER_ID between", value1, value2, "owerUserId");
            return (Criteria) this;
        }

        public Criteria andOwerUserIdNotBetween(String value1, String value2) {
            addCriterion("OWER_USER_ID not between", value1, value2, "owerUserId");
            return (Criteria) this;
        }

        public Criteria andSceretStatuIsNull() {
            addCriterion("SCERET_STATU is null");
            return (Criteria) this;
        }

        public Criteria andSceretStatuIsNotNull() {
            addCriterion("SCERET_STATU is not null");
            return (Criteria) this;
        }

        public Criteria andSceretStatuEqualTo(Short value) {
            addCriterion("SCERET_STATU =", value, "sceretStatu");
            return (Criteria) this;
        }

        public Criteria andSceretStatuNotEqualTo(Short value) {
            addCriterion("SCERET_STATU <>", value, "sceretStatu");
            return (Criteria) this;
        }

        public Criteria andSceretStatuGreaterThan(Short value) {
            addCriterion("SCERET_STATU >", value, "sceretStatu");
            return (Criteria) this;
        }

        public Criteria andSceretStatuGreaterThanOrEqualTo(Short value) {
            addCriterion("SCERET_STATU >=", value, "sceretStatu");
            return (Criteria) this;
        }

        public Criteria andSceretStatuLessThan(Short value) {
            addCriterion("SCERET_STATU <", value, "sceretStatu");
            return (Criteria) this;
        }

        public Criteria andSceretStatuLessThanOrEqualTo(Short value) {
            addCriterion("SCERET_STATU <=", value, "sceretStatu");
            return (Criteria) this;
        }

        public Criteria andSceretStatuIn(List<Short> values) {
            addCriterion("SCERET_STATU in", values, "sceretStatu");
            return (Criteria) this;
        }

        public Criteria andSceretStatuNotIn(List<Short> values) {
            addCriterion("SCERET_STATU not in", values, "sceretStatu");
            return (Criteria) this;
        }

        public Criteria andSceretStatuBetween(Short value1, Short value2) {
            addCriterion("SCERET_STATU between", value1, value2, "sceretStatu");
            return (Criteria) this;
        }

        public Criteria andSceretStatuNotBetween(Short value1, Short value2) {
            addCriterion("SCERET_STATU not between", value1, value2, "sceretStatu");
            return (Criteria) this;
        }

        public Criteria andForderIdIsNull() {
            addCriterion("FORDER_ID is null");
            return (Criteria) this;
        }

        public Criteria andForderIdIsNotNull() {
            addCriterion("FORDER_ID is not null");
            return (Criteria) this;
        }

        public Criteria andForderIdEqualTo(Long value) {
            addCriterion("FORDER_ID =", value, "forderId");
            return (Criteria) this;
        }

        public Criteria andForderIdNotEqualTo(Long value) {
            addCriterion("FORDER_ID <>", value, "forderId");
            return (Criteria) this;
        }

        public Criteria andForderIdGreaterThan(Long value) {
            addCriterion("FORDER_ID >", value, "forderId");
            return (Criteria) this;
        }

        public Criteria andForderIdGreaterThanOrEqualTo(Long value) {
            addCriterion("FORDER_ID >=", value, "forderId");
            return (Criteria) this;
        }

        public Criteria andForderIdLessThan(Long value) {
            addCriterion("FORDER_ID <", value, "forderId");
            return (Criteria) this;
        }

        public Criteria andForderIdLessThanOrEqualTo(Long value) {
            addCriterion("FORDER_ID <=", value, "forderId");
            return (Criteria) this;
        }

        public Criteria andForderIdIn(List<Long> values) {
            addCriterion("FORDER_ID in", values, "forderId");
            return (Criteria) this;
        }

        public Criteria andForderIdNotIn(List<Long> values) {
            addCriterion("FORDER_ID not in", values, "forderId");
            return (Criteria) this;
        }

        public Criteria andForderIdBetween(Long value1, Long value2) {
            addCriterion("FORDER_ID between", value1, value2, "forderId");
            return (Criteria) this;
        }

        public Criteria andForderIdNotBetween(Long value1, Long value2) {
            addCriterion("FORDER_ID not between", value1, value2, "forderId");
            return (Criteria) this;
        }

        public Criteria andIsStartIsNull() {
            addCriterion("IS_START is null");
            return (Criteria) this;
        }

        public Criteria andIsStartIsNotNull() {
            addCriterion("IS_START is not null");
            return (Criteria) this;
        }

        public Criteria andIsStartEqualTo(Long value) {
            addCriterion("IS_START =", value, "isStart");
            return (Criteria) this;
        }

        public Criteria andIsStartNotEqualTo(Long value) {
            addCriterion("IS_START <>", value, "isStart");
            return (Criteria) this;
        }

        public Criteria andIsStartGreaterThan(Long value) {
            addCriterion("IS_START >", value, "isStart");
            return (Criteria) this;
        }

        public Criteria andIsStartGreaterThanOrEqualTo(Long value) {
            addCriterion("IS_START >=", value, "isStart");
            return (Criteria) this;
        }

        public Criteria andIsStartLessThan(Long value) {
            addCriterion("IS_START <", value, "isStart");
            return (Criteria) this;
        }

        public Criteria andIsStartLessThanOrEqualTo(Long value) {
            addCriterion("IS_START <=", value, "isStart");
            return (Criteria) this;
        }

        public Criteria andIsStartIn(List<Long> values) {
            addCriterion("IS_START in", values, "isStart");
            return (Criteria) this;
        }

        public Criteria andIsStartNotIn(List<Long> values) {
            addCriterion("IS_START not in", values, "isStart");
            return (Criteria) this;
        }

        public Criteria andIsStartBetween(Long value1, Long value2) {
            addCriterion("IS_START between", value1, value2, "isStart");
            return (Criteria) this;
        }

        public Criteria andIsStartNotBetween(Long value1, Long value2) {
            addCriterion("IS_START not between", value1, value2, "isStart");
            return (Criteria) this;
        }

        public Criteria andReceiveTimeIsNull() {
            addCriterion("RECEIVE_TIME is null");
            return (Criteria) this;
        }

        public Criteria andReceiveTimeIsNotNull() {
            addCriterion("RECEIVE_TIME is not null");
            return (Criteria) this;
        }

        public Criteria andReceiveTimeEqualTo(Date value) {
            addCriterion("RECEIVE_TIME =", value, "receiveTime");
            return (Criteria) this;
        }

        public Criteria andReceiveTimeNotEqualTo(Date value) {
            addCriterion("RECEIVE_TIME <>", value, "receiveTime");
            return (Criteria) this;
        }

        public Criteria andReceiveTimeGreaterThan(Date value) {
            addCriterion("RECEIVE_TIME >", value, "receiveTime");
            return (Criteria) this;
        }

        public Criteria andReceiveTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("RECEIVE_TIME >=", value, "receiveTime");
            return (Criteria) this;
        }

        public Criteria andReceiveTimeLessThan(Date value) {
            addCriterion("RECEIVE_TIME <", value, "receiveTime");
            return (Criteria) this;
        }

        public Criteria andReceiveTimeLessThanOrEqualTo(Date value) {
            addCriterion("RECEIVE_TIME <=", value, "receiveTime");
            return (Criteria) this;
        }

        public Criteria andReceiveTimeIn(List<Date> values) {
            addCriterion("RECEIVE_TIME in", values, "receiveTime");
            return (Criteria) this;
        }

        public Criteria andReceiveTimeNotIn(List<Date> values) {
            addCriterion("RECEIVE_TIME not in", values, "receiveTime");
            return (Criteria) this;
        }

        public Criteria andReceiveTimeBetween(Date value1, Date value2) {
            addCriterion("RECEIVE_TIME between", value1, value2, "receiveTime");
            return (Criteria) this;
        }

        public Criteria andReceiveTimeNotBetween(Date value1, Date value2) {
            addCriterion("RECEIVE_TIME not between", value1, value2, "receiveTime");
            return (Criteria) this;
        }

        public Criteria andIsReadIsNull() {
            addCriterion("IS_READ is null");
            return (Criteria) this;
        }

        public Criteria andIsReadIsNotNull() {
            addCriterion("IS_READ is not null");
            return (Criteria) this;
        }

        public Criteria andIsReadEqualTo(Short value) {
            addCriterion("IS_READ =", value, "isRead");
            return (Criteria) this;
        }

        public Criteria andIsReadNotEqualTo(Short value) {
            addCriterion("IS_READ <>", value, "isRead");
            return (Criteria) this;
        }

        public Criteria andIsReadGreaterThan(Short value) {
            addCriterion("IS_READ >", value, "isRead");
            return (Criteria) this;
        }

        public Criteria andIsReadGreaterThanOrEqualTo(Short value) {
            addCriterion("IS_READ >=", value, "isRead");
            return (Criteria) this;
        }

        public Criteria andIsReadLessThan(Short value) {
            addCriterion("IS_READ <", value, "isRead");
            return (Criteria) this;
        }

        public Criteria andIsReadLessThanOrEqualTo(Short value) {
            addCriterion("IS_READ <=", value, "isRead");
            return (Criteria) this;
        }

        public Criteria andIsReadIn(List<Short> values) {
            addCriterion("IS_READ in", values, "isRead");
            return (Criteria) this;
        }

        public Criteria andIsReadNotIn(List<Short> values) {
            addCriterion("IS_READ not in", values, "isRead");
            return (Criteria) this;
        }

        public Criteria andIsReadBetween(Short value1, Short value2) {
            addCriterion("IS_READ between", value1, value2, "isRead");
            return (Criteria) this;
        }

        public Criteria andIsReadNotBetween(Short value1, Short value2) {
            addCriterion("IS_READ not between", value1, value2, "isRead");
            return (Criteria) this;
        }

        public Criteria andMailIsReceiptIsNull() {
            addCriterion("MAIL_IS_RECEIPT is null");
            return (Criteria) this;
        }

        public Criteria andMailIsReceiptIsNotNull() {
            addCriterion("MAIL_IS_RECEIPT is not null");
            return (Criteria) this;
        }

        public Criteria andMailIsReceiptEqualTo(Short value) {
            addCriterion("MAIL_IS_RECEIPT =", value, "mailIsReceipt");
            return (Criteria) this;
        }

        public Criteria andMailIsReceiptNotEqualTo(Short value) {
            addCriterion("MAIL_IS_RECEIPT <>", value, "mailIsReceipt");
            return (Criteria) this;
        }

        public Criteria andMailIsReceiptGreaterThan(Short value) {
            addCriterion("MAIL_IS_RECEIPT >", value, "mailIsReceipt");
            return (Criteria) this;
        }

        public Criteria andMailIsReceiptGreaterThanOrEqualTo(Short value) {
            addCriterion("MAIL_IS_RECEIPT >=", value, "mailIsReceipt");
            return (Criteria) this;
        }

        public Criteria andMailIsReceiptLessThan(Short value) {
            addCriterion("MAIL_IS_RECEIPT <", value, "mailIsReceipt");
            return (Criteria) this;
        }

        public Criteria andMailIsReceiptLessThanOrEqualTo(Short value) {
            addCriterion("MAIL_IS_RECEIPT <=", value, "mailIsReceipt");
            return (Criteria) this;
        }

        public Criteria andMailIsReceiptIn(List<Short> values) {
            addCriterion("MAIL_IS_RECEIPT in", values, "mailIsReceipt");
            return (Criteria) this;
        }

        public Criteria andMailIsReceiptNotIn(List<Short> values) {
            addCriterion("MAIL_IS_RECEIPT not in", values, "mailIsReceipt");
            return (Criteria) this;
        }

        public Criteria andMailIsReceiptBetween(Short value1, Short value2) {
            addCriterion("MAIL_IS_RECEIPT between", value1, value2, "mailIsReceipt");
            return (Criteria) this;
        }

        public Criteria andMailIsReceiptNotBetween(Short value1, Short value2) {
            addCriterion("MAIL_IS_RECEIPT not between", value1, value2, "mailIsReceipt");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}